<!--本页面由uniapp切片工具生成，uni-app切片-可视化设计工具(一套代码编译到7个平台iOS、Android、H5、小程序)，软件下载地址：http://www.ymznkf.com/new_view_669.htm -->
<template>
	<view class="YmContent" :animation="animationData">
			<view class="application_for_withdrawal_71">
				<text decode="true" class="application_for_withdrawal_74">提现金额</text>
				<view class="application_for_withdrawal_75">
					<text decode="true" class="application_for_withdrawal_76">￥</text>
					<input  class="application_for_withdrawal_77" v-model="money" />
		
				</view>
				<view class="application_for_withdrawal_81">
					<text decode="true" class="application_for_withdrawal_82">可提现金额为{{bus_smoney}}元</text>
				
				</view>
				<radio-group @change="payType_change" class="payType">
					<!-- <image v-on:click="application_for_withdrawal_85_10_click()"  src="../../../static/application_for_withdrawal_85_10.jpg" mode="scaleToFill" border="0"    class="application_for_withdrawal_85"></image>
					<text decode="true" class="application_for_withdrawal_86">微信</text>
					<radio value="wx"  class="application_for_withdrawal_87">
					</radio> -->
					<image v-on:click="application_for_withdrawal_88_13_click()"  src="../../../static/application_for_withdrawal_88_13.jpg" mode="scaleToFill" border="0"    class="application_for_withdrawal_88"></image>
					<text decode="true" class="application_for_withdrawal_89">支付宝</text>
					<radio value="zfb"  class="application_for_withdrawal_90" checked="">
					</radio>
				</radio-group>
				<button v-on:click="submit()" class="btSubmit">确认提现
				</button>
			</view>
			<view class="button1">
				<view class="button2" v-for="(vo,index) in list">
					<view class="button3">
						<view class="button5">
								订单号：{{vo.order_on}}
						</view>
						<view class="button6">
								{{vo.addtime_text}}【{{vo.state_text}}】
								<text class="button7" v-if="vo.state == 2" @click="chakan(vo.reject_content)">
									查看原因
								</text>
						</view>
						
					</view>
					<view class="button4">
					 {{vo.money}}
					</view>
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				bus_smoney:'',
				money:'',
				list:[],
			}
		},
		onShow() {
			
		},
		onLoad() {
			this.index()
		},
		methods:{
			submit(){
					this.$ajax('post','bus.withdrawal/add',{
						money:this.money,
					}).then(res=>{
						if(res.code==1){
							uni.showToast({
								title:res.msg
							})
						}
					})
			},
			chakan(data){
				uni.showModal({
				        title: '拒绝内容',
				        content: data,
				        success: function (res) {
				          if (res.confirm) {
				            console.log('用户点击确定');
				          } else if (res.cancel) {
				            console.log('用户点击取消');
				          }
				        }
				      });
			},
			index(){
				this.$ajax('post','bus.withdrawal/index',{	
				}).then(res=>{
					this.bus_smoney = res.data.money.bus_smoney
					this.list = res.data.list
					
				});
			},
		
		},
	}
</script>

<style>
html,body,#app {height: 100%;width: 100%;}
.YmContent {height: 100%;width: 100%;}
uni-page-body,#app {height: 100%;}
button::after {border: none;width: auto;}
input{outline: none;border: none;list-style: none;width: auto;}
.list_item{float: left;}
.ym_hide{display: none;}
.ym_show{display: block;}
.slide-image {  width: 100%;  height:100%;}
.list_horizontal {width: auto; display:inline-block; }
 .application_for_withdrawal_71{white-space:normal;width:749upx;padding:0upx;clear:both;float:left;background-color:#ffffff; border-radius:0upx;font-size:8upx;}
 .application_for_withdrawal_71 .application_for_withdrawal_74{white-space:normal;width:181upx;height:34upx;padding:0upx;clear:both;margin-top:30upx;margin-left:34upx;float:left; border-radius:0upx; color:#646464;font-size:32upx; line-height:34upx;}
 .application_for_withdrawal_71 .application_for_withdrawal_75{white-space:normal;width:647upx;height:44upx;padding:0upx;clear:both;margin-top:68upx;margin-left:34upx;float:left; border-radius:0upx;font-size:43upx; line-height:44upx;}
 .application_for_withdrawal_71 .application_for_withdrawal_75 .application_for_withdrawal_76{white-space:normal;width:auto;height:44upx;padding:0upx;margin-top:0upx;margin-left:0upx;float:left; border-radius:0upx; color:#646464;font-size:43upx; line-height:44upx;}
 .application_for_withdrawal_71 .application_for_withdrawal_75 .application_for_withdrawal_77{white-space:normal;width:auto;height:44upx;min-height:44upx;padding:0upx;margin-top:0upx;margin-left:25upx;float:left; border-radius:0upx; color:#c8c8c8;font-size:43upx; line-height:43upx;}
 .application_for_withdrawal_71 .application_for_withdrawal_81{white-space:normal;width:704upx;height:36upx;padding:0upx;clear:both;margin-top:85upx;margin-left:32upx;float:left; border-radius:0upx;font-size:29upx; line-height:36upx;}
 .application_for_withdrawal_71 .application_for_withdrawal_81 .application_for_withdrawal_82{white-space:normal;width:377upx;height:36upx;padding:0upx;margin-top:0upx;margin-left:0upx;float:left; border-radius:0upx; color:#c8c8c8;font-size:29upx; line-height:36upx;}
 .application_for_withdrawal_71 .application_for_withdrawal_81 .application_for_withdrawal_83{white-space:normal;width:128upx;height:36upx;padding:0upx;margin-top:0upx;margin-left:186upx;float:left; border-radius:0upx; color:#ff4342;font-size:29upx; line-height:36upx;}
 .application_for_withdrawal_71 .payType{white-space:normal;width:683upx;height:50upx;padding:0upx;clear:both;margin-top:64upx;margin-left:33upx;float:left; border-radius:0upx;font-size:49upx; line-height:50upx;}
 .application_for_withdrawal_71 .payType .application_for_withdrawal_85{white-space:normal;width:46upx;height:47upx;padding:0upx;margin-top:3upx;margin-left:2upx;float:left; border-radius:0upx;font-size:48upx; line-height:47upx;}
 .application_for_withdrawal_71 .payType .application_for_withdrawal_86{white-space:normal;width:61upx;height:28upx;padding:0upx;margin-top:11upx;margin-left:23upx;float:left; border-radius:0upx; color:#646464;font-size:27upx; line-height:28upx;}
 .application_for_withdrawal_71 .payType .application_for_withdrawal_87{white-space:normal;width:43upx;height:44upx;padding:0upx;margin-top:2upx;margin-left:4upx;float:left; border-radius:0upx;font-size:43upx; line-height:44upx;}
 .application_for_withdrawal_71 .payType .application_for_withdrawal_88{white-space:normal;width:47upx;height:47upx;padding:0upx;margin-top:3upx;margin-left:105upx;float:left; border-radius:0upx;font-size:49upx; line-height:47upx;}
 .application_for_withdrawal_71 .payType .application_for_withdrawal_89{white-space:normal;width:81upx;height:29upx;padding:0upx;margin-top:11upx;margin-left:22upx;float:left; border-radius:0upx; color:#646464;font-size:27upx; line-height:29upx;}
 .application_for_withdrawal_71 .payType .application_for_withdrawal_90{white-space:normal;width:43upx;height:43upx;padding:0upx;margin-top:3upx;margin-left:11upx;float:left; border-radius:0upx;font-size:42upx; line-height:43upx;}
 .application_for_withdrawal_71 .btSubmit{white-space:normal;width:679upx;height:92upx;padding:0upx;clear:both;margin-top:63upx;margin-left:35upx;float:left;background-color:#ff4342;text-align:center;justify-content:center; border-radius:10upx; cursor:pointer; color:#ffffff;font-size:27upx; line-height:92upx;}
 .application_for_withdrawal_71 .btSubmit_label{float:left;}
 .application_for_withdrawal_71 .btSubmit_button{float:left;color:#000000;font-size:30rpx;text-align:center;line-height:30rpx;border-color:#e1e1e1;border-width: 1rpx;border-style:solid;border-radius:5rpx;padding:10rpx;margin:15rpx;}
 .application_for_withdrawal_71 .btSubmit_button_select{float:left;color:#ff8000;font-size:30rpx;text-align:center;line-height:30rpx;border-color:#ff8000;border-width: 1rpx;border-style:solid;border-radius:5rpx;padding:10rpx;margin:15rpx;}
 .application_for_withdrawal_71 .btSubmit_title{float:left;}
 .button1{
	 width: 100%;
	 font-size: 14px;
	 float: left;
 }

 .button2{
	width: 100%;
	border-bottom: 1px solid #d2c6c6;
	border-top: 1px solid #d2c6c6;
	margin-top: 10px;
	height: 65px;
 }
 .button3{
	 width: 70%;
	 float: left;
	 margin-left: 10%;
	 font-size: 14px;
	 padding-top: 7px;
 }
 .button4{
	 width: 20%;
	 float: right;
	 font-size: 14px;
	 margin-top: 20px;
	 color: red;
	 font-weight: bold;
 }
 .button5{
	line-height: 32px;
	font-size: 14px;
 }
 .button6{
	 font-size: 12px;
 }
 .button7{
	 font-size: 12px;
	 color: red;
 }
</style>
